package com.hz.web.dao;

import java.util.List;
import java.util.Map;

import com.hz.web.entity.CreditCommitmentEntity;

/**
 * 信用承诺信息dao层
 * @author Administrator
 *
 */
public interface CreditCommitmentDao {

	/**
	 * 查询信用承诺信息
	 * @param parmsMap
	 * @return
	 */
	List<CreditCommitmentEntity> queryCreditCommitment(Map<String, Object> parmsMap);
	/**
	 * 查询信用承诺信息总条数
	 * @param parmsMap
	 * @return
	 */
	int queryCreditCommitmentCount(Map<String, Object> parmsMap);
	/**
	 * 添加信用承诺信息
	 * @param entity
	 * @return
	 */
	int addCreditCommitment(CreditCommitmentEntity entity);
	/**
	 * 修改信用承诺信息
	 * @param entity
	 * @return
	 */
	int updateCreditCommitment(CreditCommitmentEntity entity);
	
	/**
	 * 根据部门编码修改部门名称（部门没有编码，取的部门ID）
	 * @param parmsMap
	 * @return
	 */
	int updateCreditCommitmentByCode(Map<String, Object> parmsMap);
}
